package com.lenovo.study.controller;

import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

/**
 * Author: fuxh3@lenovo.com
 * Date: Created in 2017/8/23 0023
 */
@RestController
@RequestMapping(value = "/api")
public class ApiController {
    @RequestMapping(value = "/get",method = RequestMethod.POST)
    public Map<String,Object> get(@RequestParam String name){
        Map<String,Object> map = new HashMap<>();
        map.put("name",name);
        map.put("value","hello world");
        return map;
    }
}
